package com.smarth.zhizulian.adapter;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.smarth.zhizulian.R;
import com.smarth.zhizulian.bean.profit.ProfitCashApply;
import com.smarth.zhizulian.utils.ViewHolder;

import java.util.List;

/**
 * Created by 18865 on 2017/12/25.
 */

public class GetMoneyAdapter extends BaseObjectListAdapter {
    public GetMoneyAdapter(Context context, List<? extends Object> datas) {
        super(context, datas);
    }

    @Override
    public View getItemView(int position, View convertView, ViewGroup parent) {
        convertView = getConvertView(convertView, R.layout.item_moneydetail);
        TextView tv_date = ViewHolder.get(convertView, R.id.tv_date);
        TextView tv_desc = ViewHolder.get(convertView, R.id.tv_desc);
        TextView tv_money = ViewHolder.get(convertView, R.id.tv_money);
        ProfitCashApply md = (ProfitCashApply) mDatas.get(position);
        tv_date.setText(md.getCreateTime());
        tv_desc.setText(md.getType());
        tv_money.setText(md.getCoin());
        return convertView;
    }
}
